import Home from '../view/home';
import My from '../view/my';
import Dian from '../view/dian';
import Ding from '../view/ding';
import Defail from '../view/defail';
import Search from '../view/search';
import B from '../view/b';
import {Routes,Route,BrowserRouter,Outlet} from 'react-router-dom'
function routerView(){
    return (
        
            <Routes>
                <Route path='/' element={<Home></Home>}>
                
                </Route>
                <Route path='/my' element={<My></My>}>
                    <Route path='/my/search' element={<Search></Search>}></Route>
                <Route path='/my/b' element={<B></B>}></Route>
                </Route>
                <Route path='/dian' element={<Dian></Dian>}></Route>
                <Route path='/ding' element={<Ding></Ding>}></Route>
                <Route path='/defail/:id' element={<Defail></Defail>}></Route>
            </Routes>
       
    )
}


export default routerView;